Pronamic\WordPress\Pay\Extensions\RestrictContent\Extension C

Total Complexity 112
Dependencies 35
Dependents 0
Total lines 1,106
Lines of code 576
Logical lines of code 302
Comment lines 336
Methods 30
Properties 1

Methods 30

Method Rating Maintainability Complexity Lines of code
payment_status_update()
B
39 19 63
rcp_transition_membership_status()
A
44 10 50
maybe_update_membership_gateway()
A
48 9 35
new_payment()
A
43 6 50
maybe_record_restrictcontentpro_payment_refund()
S
52 6 25
rcp_membership_can_cancel()
S
57 6 19
get_account_page_url()
S
56 5 19
payment_redirect_url()
S
58 5 17
are_upgrades_executable()
S
57 4 17
get_gateways()
S
49 3 31
subscription_status_update()
S
59 4 15
rcp_subscription_details_actions()
S
56 3 18
get_rcp_membership_from_payment()
S
58 3 16
rcp_gateway_subscription_id_url()
S
62 3 12
plugins_loaded()
S
52 2 22
payments_settings()
S
66 3 8
payment_source_url()
S
60 2 15
subscription_source_url()
S
60 2 15
rcp_edit_payment_after()
S
54 1 24
payment_source_text()
S
57 1 17
subscription_source_text()
S
57 1 17
__construct()
S
57 1 17
rcp_membership_payment_profile_cancelled()
S
69 2 7
payment_source_description()
S
67 2 8
subscription_source_description()
S
67 2 8
next_payment_delivery_date()
S
67 2 8
rcp_after_membership_admin_update()
S
66 2 8
setup()
S
64 1 9
register_pronamic_gateways()
S
79 1 3
admin_init_upgrades_executable()
S
81 1 3